package com.atguigu.guli.service.edu.service;

import com.atguigu.guli.service.edu.entity.Course;
import com.atguigu.guli.service.edu.entity.form.CourseInfoForm;
import com.atguigu.guli.service.edu.entity.query.CourseInfoSearch;
import com.atguigu.guli.service.edu.entity.query.CourseSearch;
import com.atguigu.guli.service.edu.entity.vo.CourseDetailsVo;
import com.atguigu.guli.service.edu.entity.vo.CourseInfoVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author atguigu
 * @since 2021-07-27
 */
public interface CourseService extends IService<Course> {

    String saveCourseInfo(CourseInfoForm courseInfoForm);

    void updateCourseInfo(CourseInfoForm courseInfoForm, String courseId);

    void listPage(Page<CourseInfoVo> page, CourseInfoSearch courseInfoSearch);

    CourseInfoVo getCoursePublish(String courseId);

    List<Course> listCourses(CourseSearch courseSearch);

    CourseDetailsVo getCoursesDetails(String courseId);
}
